Home > C Programming > printf() and scanf() > Questions and Answers
01. | The statement which prints out the value of the integer variable sum, is | |||||||||||
|
02. | The statement which prints out the text string "Welcome", followed by a newline, is. | |||||||||||
|
03. | The statement which prints out the value of the character variable letter, is | |||||||||||
|
04. | The statement which prints out the value of the float variable discount, is | |||||||||||
|
05. | The statement which prints out the value of the float variable dump using two decimal places, is | |||||||||||
|
06. | The statement to read a decimal value from the keyboard, into the integer variable sum, is | |||||||||||
|
07. | The statement to read a float value into the variable discount_rate is | |||||||||||
|
08. | The statement to read a single character from the keyboard into the variable operator, skipping leading blanks, tabs and newline characters, is | |||||||||||
|
09. |
What will be the output of the following program? main() { printf(3+"SoftLucent"+4); } | |||||||||||
|
10. |
What will be the output of the following program? main() { printf("%c","SoftLucent"[4]); } | |||||||||||
|